# styx-to-op
# used by ofs

Stop: module {
	PATH: con "/dis/o/stop.dis";

	init:		fn(op: Op,  opm: Opmux, s: Styx, c: Cache) : string;
	term:		fn();

	stat:		fn(qid: big): (ref Sys->Dir, string);
	validate:	fn(qid: big, path: string): (ref sys->Dir, string);
	walk1:	fn(qid: big, elem: string): (ref Sys->Dir, string);
	readdir:	fn(qid: big, off, cnt: int): (list of Sys->Dir, string);
	wstat:	fn(qid: big, d: ref Sys->Dir): (ref Sys->Dir, string);
	pread:	fn(qid: big, cnt: int, off: big): (array of byte, string);
	pwrite:	fn(qid: big, data: array of byte, off: big) : (int, string);
	flush:	fn(qid: big) : string;
	create:	fn(qid: big, d: ref Sys->Dir): (ref Sys->Dir, string);
	remove:	fn(qid: big) : string;

	dump:	fn();
};
